<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var num1 = 12 * 6 + 7 * 8 + 7 ** 4
    var num2 = 67 * 5 + 24 ** 2
    var result = num1 > num2 ? num1 : num2
    console.log(result)

    var info = {
      name: 'why',
      age: 18
    }
    var obj = info ? info : {}
    console.log(obj)

    var age = Number(prompt("请输入你的年龄"))
    var message = age >= 18 ? "成年人" : "未成年人"
    console.log(message)

  </script>

</body>

</html>